import { createRouter, createWebHashHistory, useRoute } from 'vue-router'
import routes from '@/routes'

// 载入路由
const route = createRouter({
  // hash
  history: createWebHashHistory(),
  routes,
})

// 当前路由信息
export const routeInfo = useRoute

export default route

